package com.atguigu.gmall.product.controller;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.product.service.SkuInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lfy
 * @Description
 * @create 2023-07-18 10:44
 */
@RestController
@RequestMapping("/admin/product")
public class SkuIdBitMapRestController {


    @Autowired
    SkuInfoService skuInfoService;
    /**
     * 初始化skuid位图
     * @return
     */
    @GetMapping("/bitmap/skuids/init")
    public Result initSkuidBitMap(){

        skuInfoService.initSkuidBitMap();

        return Result.ok();
    }
}
